home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 626-637 / disk_627 / adoc / adocenglish.doc < prev    next >
Text File  |  1992-05-06  |  22KB  |  549 lines

  1.  
  2.             ADoc v7.04 - User's guide
  3.  
  4.  
  5.  
  6.  
  7.  
  8.     This file describes release 7.04 of the utility ADoc. This program
  9. is public domain, and permission is granted to freely distribute and  copy
  10. it, provided no charge or fee is ask for, and no modification is  done    to
  11. this package.
  12.  
  13.     ADoc  is  copyright  (c)1990-1991-1992  by  Denis  GOUNELLE,   any
  14. commercial usage or selling of this program, without written authorization,
  15. is ABSOLUTLY FORBIDEN. By mutual agreement, Serge HAMMOUCHE is    authorized
  16. to distribute ADoc as he likes.
  17.  
  18.     "PowerPacker 2.3b" is (c)1989  by  PowerPeak  and  Nico  FRANCOIS.
  19. "PowerPacker Pro 3.0b" is (c)1990 by PowerPeak and by  UGA  Software.  The
  20. "powerpacker.library" library  is  (c)1990  by  Nico  FRANCOIS.  AREXX  is
  21. (c)1987 by Bill Hawes.
  22.  
  23.      No warranty is made that there's no errors in this  program.  YOU
  24. USE THIS PROGRAM AT YOUR OWN RISKS. In no event will I be liable  for  any
  25. damage, direct or indirect, resulting of the use of ADoc.
  26.  
  27.  
  28. Table of contents:
  29. ------------------
  30.  
  31.     1. Introduction
  32.     2. How does it work.
  33.     3. User's guide
  34.        3.1 Running ADoc from the CLI.
  35.        3.2 Running ADoc from the WorkBench.
  36.        3.3 User's guide.
  37.        3.4 The term request.
  38.     4. Advanced concepts
  39.        4.1 Using several documentation files.
  40.        4.2 How to rely several files to a documentation file.
  41.        4.3 How to create several indexes.
  42.        4.4 How to extend the character set.
  43.        4.5 Using "powerpacker.library".
  44.        4.6 The AREXX mode.
  45.        4.7 Using Commodore AutoDoc files.
  46.        4.8 The "Special" menu.
  47.     5. Error messages.
  48.  
  49.  
  50. 1. Introduction.
  51. ----------------
  52.  
  53.     ADoc is an  utility  that  allows  you    to  manage  all  kinds    of
  54. documentation files. Its major feature is  automatic  search  for  a  word
  55. selected by a mouse click. Also, ADoc can work    on  several  documentation
  56. files at the same time, on Commodore AutoDoc files, and has an AREXX port.
  57.  
  58.       +--------------------------------------------------------+
  59.       |             CAUTION !!!               |
  60.       |                               |
  61.       | The doc file format has changed from releases 3.xx and |
  62.       | 4.xx to releases 5.xx. To make old doc files work read |
  63.       | the documentation file to know what is the new format, |
  64.       | modify your old docs (this should not take you lots of |
  65.       | time...) and re-create the index files.           |
  66.       +--------------------------------------------------------+
  67.  
  68.     You can send me your suggestions or criticism writing to:
  69.  
  70.                 M. GOUNELLE Denis
  71.                 Boite 71
  72.                6, rue des cailloux
  73.               92110 CLICHY - FRANCE
  74.  
  75.     Many thanks to Jean-Yves PROUX, Jean-Philippe RAPP and    Helmut    J.
  76. ESENWEIN for their numerous suggestions, to Simon HEWINSON for the english
  77. translation of the "Amiga.doc" file. Thanks again  to  Jean-Philippe  RAPP
  78. for gaving me the opportunity to  test    ADoc  with  2.02  release  AutoDoc
  79. files.
  80.  
  81.  
  82. 2. How does it work.
  83. --------------------
  84.  
  85.     ADoc works on a documentation file created  with  a  text  editor.
  86. This file will contain a list of terms and each term will look like this:
  87.  
  88.         term
  89.             explanation line 1
  90.             explanation line 2
  91.                .    .    .
  92.                .    .    .
  93.             explanation line n
  94.  
  95.     The first character of each term MUST be  at  column  1,  and  the
  96. explanation lines MUST begin at least with a space  or    a  tab    character.
  97. It's the only way ADoc can make a  distinction  between  a  term  and  its
  98. explanation. Also, the first and second line  of  the  documentation  file
  99. MUST be  empty    (or  begin  with  a  space  or  tab  character,  for  more
  100. informations see sections 4.2 and 4.4).
  101.  
  102.     The term string can't be more than 32 characters  long  and  can't
  103. contain any spaces or tabs. The following  are    valid  characters:  single
  104. letters (upper or lower case), digits, stressed lowercase  letters  (ASCII
  105. codes between 217 and 246) and underline. However,  you  can  extend  this
  106. character set (see section 4.4).
  107.     ADoc won't complain if a term is defined several times in a file :
  108. the explanation lines will just be put together when  the  text  for  this
  109. term will have to be displayed. If you define the term "AboutThisDoc", the
  110. corresponding text will automatically be displayed at startup time.
  111.  
  112.     You can't use more than 32767 terms for each  documentation  file.
  113. An explanation line can't be more than 256 characters long (however,  only
  114. the first characters will be displayed). The number of    explanation  lines
  115. for a term is unlimited.
  116.  
  117.     You can include the following ANSI sequences in  your  explanation
  118. lines:
  119.  
  120.             ESC[0m     Normal character set
  121.             ESC[1m     Boldface on
  122.             ESC[3m     Italics on
  123.             ESC[22m    Boldface off
  124.             ESC[23m    Italics off
  125.  
  126.     Once the documentation file has been created, ADoc will  built    an
  127. index file allowing to access a term almost instantly. The  name  of  this
  128. index file will be the documentation file name plus  an  ".index"  suffix.
  129.  
  130.  
  131.       +-------------------------------------------------------+
  132.       |             CAUTION !!!              |
  133.       |                              |
  134.       |    You MUST re-build your index file each time you      |
  135.       |           modify the documentation file.          |
  136.       +-------------------------------------------------------+
  137.  
  138.  
  139. 3. User's guide.
  140. ----------------
  141.  
  142.     ADoc can be run from WorkBench or from the CLI.  By  default,  the
  143. documentation file is "Amiga.doc",  but  in  both  cases  you  can specify
  144. another filename.
  145.  
  146.  
  147.     3.1 Running ADoc from CLI.
  148.     --------------------------
  149.  
  150.     From the CLI, ADoc is invoked using a command line of the form:
  151.  
  152.            ADoc  -i [-f<file>]
  153.         or ADoc [-c][-e][-f<file>][-l][-n][-q][-A][<term>]
  154.  
  155.     The first command line invokes ADoc for creating  a  documentation
  156. file index; the second one allows to interrogate the  documentation  file.
  157. Five options are avalaible:
  158.  
  159.      -i     if specified, ADoc only creates the documentation  file
  160.         index. This option MUST be the first one in the command
  161.         line.
  162.  
  163.      -c     tells ADoc to ignore letter case (in search as well  as
  164.         in term request). Should be  specified    before    any  -f
  165.         option.
  166.  
  167.      -e     if specified, ADoc opens its  own  screen,  instead  of
  168.         using the Workbench's screen. Please take  notice  that
  169.         ADoc always open its own screen when WorkBench's screen
  170.         default font is not "topaz8".
  171.  
  172.     -f<file>    if specified, ADoc look for this documentation file. If
  173.         no full pathname was specified, ADoc looks for the file
  174.         first in the current directory, and then in the "ADOC:"
  175.         directory.
  176.  
  177.      -l     if specified, ADoc opens a screen in  interlaced  mode.
  178.         If you didn't specify -e option, and  your  Workbench's
  179.         screen is not in interlaced mode, ADoc    will  open  its
  180.         own screen.
  181.  
  182.      -n     asks ADoc to don't  sort  index  when  displaying  term
  183.         request. Should be specified before any -f option.
  184.  
  185.      -q     asks ADoc  to  don't  display  "AboutThisDoc"  term  at
  186.         startup time.
  187.  
  188.      -A     if specified, sets AREXX mode (see  section  4.6).  The
  189.         -i and -e options can't be used with this option.
  190.  
  191.     When using the second command line, you can specify a term of  the
  192. documentation file to be searched first (optional).
  193.  
  194.  
  195.     3.2 Running ADoc from Workbench.
  196.     --------------------------------
  197.  
  198.     From Workbench, ADoc is inwoked by four ways :
  199.  
  200.     - by double-clicking on its icon (then ADoc will use the default
  201.       documentation file)
  202.     - by clicking on a documentation file icon which default tool is
  203.       ADoc.
  204.     - by clicking on ADoc icon, holding down the SHIFT key, and then
  205.       double-clicking on a documentation file icon
  206.     - by clicking on a documentation file  icon,  holding  down  the
  207.       SHIFT key, and double-clicking on ADoc icon.
  208.  
  209.     When ADoc is run from the  Workbench,  it  always  opens  its  own
  210. screen. You can specify options in the "TOOL TYPES" field of ADoc icon, or
  211. file icon. The syntax is :
  212.  
  213.            ADOC=[INTERLACE]|[NOSORT]|[CASE]|[QUICK]
  214.  
  215. The INTERLACE parameter asks for a screen in interlace    mode.  The  NOSORT
  216. parameter asks ADoc to don't sort index when displaying term request.  The
  217. CASE parameter tells ADoc to ignore letter case when searching, or in term
  218. request. The QUICK parameter asks ADoc to don't display the "AboutThisDoc"
  219. term at startup time.
  220.  
  221.  
  222.     3.3 User's guide.
  223.     -----------------
  224.  
  225.     When opening the help file, ADoc searchs  for  the  "AboutThisDoc"
  226. term. If it exists, the corresponding text is displayed in  a  window  and
  227. ADoc waits for this window to be closed to continue.
  228.  
  229.     If ADoc was invoked either from Workbench, or  from  CLI  and  the
  230. term was not specified    in  the  command  line,  the  program  displays  a
  231. requester with a list of the known terms. See section 3.4 for term request
  232. description.
  233.  
  234.     When you have specified the term to search, a window  will  appear
  235. with the text corresponding to the term. If the text is too  large  to    be
  236. fully displayed, only the first page will  be  displayed,  and    two  arrow
  237. gadgets will apeared on the title bar of the window. These  gadgets  allow
  238. to move your text in the  window,  and    will  be  automatically  added    or
  239. removed if required when the window is resized. To close the window, click
  240. on the close gadget or press the ESCAPE key.
  241.  
  242.     Now, you can click twice on a word of the explanation  text:  that
  243. will run the searching function for this word automatically. If  the  word
  244. couldn't be found the screen  will  flash,  otherwise  the  text  will  be
  245. displayed in a new window.
  246.     If you want to get the text for a term, and this term  is  not    is
  247. any displayed text, you need to select the "Other term" command  from  the
  248. "Project" menu: ADoc will display a requester with the list of known terms
  249. within (see section 3.4 for term request description).
  250.     In both cases, if you selected a term relied  to  a  window,  this
  251. window will be put in the foreground.
  252.  
  253.     You can print the text relied to a term by selecting  the  "Print"
  254. command from the "Project" menu. In the eventuality  your  text  has  some
  255. escape sequences, these will (of course) be correctly interpreted  by  the
  256. printer.
  257.  
  258.     You can iconify ADoc by selecting the "Iconify" command  from  the
  259. "Project" menu. Then, all the windows will be closed (if ADoc  opened  its
  260. own screen, it will be closed too) and a small window will appear  on  the
  261. left top corner of the Workbench's screen. Now, either you can  quit  ADoc
  262. by clicking on the window close gadget, or you can awake  it  by  pressing
  263. the right mouse button. At this moment, ADoc will suggest you to 're-open'
  264. all the windows that were opened when you have iconified it. By  selecting
  265. "NO" you'll get the term request.
  266.  
  267.     You can move ADoc from a screen to another one    by  selecting  the
  268. "Front Screen" command from the Project menu. To do it,  move  the  screen
  269. where you want ADoc to display in front of all the other screens, drag    it
  270. down and move ADoc screen just    behind.  Choose  now  the  "Front  Screen"
  271. command: all the windows will be moved to the  foreground  screen.  Please
  272. take notice that this command won't work if default  font  of  destination
  273. screen is not "topaz8", or if ADoc  screen  is  in  interlace  mode  while
  274. destination screen doesn't.
  275.  
  276.     You can quit ADoc either by closing each window (ADocs stops  when
  277. the last window is closed) or by choosing  the    "Quit"  command  from  the
  278. Project menu.
  279.  
  280.     When a YES/NO requester is displayed,  you  can  answer  "YES"  by
  281. pressing the RETURN key, or answer "NO" by pressing the ESCAPE key.
  282.  
  283.  
  284.     3.4 The term request
  285.     --------------------
  286.  
  287.     The term request allows you to select a term with your    mouse.    If
  288. you click on a term, this term will be    (red)  highlightened.  Click  once
  289. again on it to confirm your choice,  or  click    on  another  term  if  you
  290. changed your mind.
  291.  
  292.     You can also make your choice with the keyboard. If  you  press  a
  293. key, this letter will be added to the current prefix (displayed in  a  box
  294. at the bottom of the window), and the display of the term list will  start
  295. with the first term beginning with this prefix. ADoc will try to  complete
  296. the prefix as far as possible. If you press the BACKSPACE  key,  the  last
  297. letter of the prefix will be removed, and  the    display  updated.  If  you
  298. press the RETURN key, the first term corresponding to the prefix  will    be
  299. taken as your choice. If you press the ESCAPE  key,  the  window  will    be
  300. closed and the request aborted.
  301.  
  302.  
  303. 4. Advanced concepts.
  304. ---------------------
  305.  
  306.     4.1 Using several documentation files.
  307.     --------------------------------------
  308.  
  309.     To do it, only you need to specify the names of the files you want
  310. to use: from Workbench, by selecting the icon of these files, from the CLI
  311. by typing a comand line of the form:
  312.  
  313.         ADoc [options] -fname1,name2,...nameN [<term>]
  314.  
  315.     You can specify several -f options and other options between them,
  316. like :
  317.  
  318.         ADoc -fname1,name2 -c -fname3 -n -fname4
  319.  
  320. which cause ADoc to load name1, name2, name3 and name4 files. The index of
  321. name1, name2 and name3 files will be sorted in the term request  (ignoring
  322. letter case for name3 file), but not the index of name4 file.
  323.     If you don't specify the full path name for a file, it is supposed
  324. to be in the current directory or in the "ADOC:" directory. By  specifying
  325. a directory name (or, from Workbench, by selecting a directory icon),  all
  326. the files of this directory will be  used  (except  files  whose  filename
  327. extension is ".info" or ".index"). As usual, when  one  or  several  index
  328. files don't exist, Adoc will ask for creating them.
  329.  
  330.     Practically, ADoc works as usual. Here is additional features:
  331.  
  332.     - when    opening  EACH  file,  ADoc   will   search   for   the
  333.       "AboutThisDoc" term  and  display  the  corresponding  text,
  334.       then wait for the window to be closed to continue.
  335.     - ADoc looks for a selected word in ALL documentation files it
  336.       is using
  337.     - if a term is defined in several files, all the lines will be
  338.       put together and displayed in the same window
  339.     - when ADoc displays a requester, you can change the "display"
  340.       by pressing on the right mouse button:  alternately,    you'll
  341.       get either the list of terms of  the    current  documentation
  342.       file, or a list of files that ADoc is using at this  moment.
  343.       So, you can select a term in any documentation file.
  344.  
  345.     ADoc won't load twice the same file. Two files are  considered  as
  346. identical EITHER if their names are identical OR  if  their  indexes  have
  347. been created at the same date and time. Date value is stored in the  index
  348. file when you created it, so this value will change only if you  re-create
  349. this index file.
  350.  
  351.  
  352.     4.2 How to rely several files to a documentation file.
  353.     ------------------------------------------------------
  354.  
  355.     Also, it's possible for you to connect one  or  more  files  to  a
  356. documentation file. In this case, when this documentation file is  opened,
  357. automatically, at the same time, ADoc will load the relied files.
  358.  
  359.     To use this function, only you need to specify the name  of  every
  360. file you want to rely to the documentation file, separated with commas, in
  361. the first line of this file. If the first command line is empty, or begins
  362. by a space or tab character, no file will be relied to the doc file.
  363.  
  364.     Except if you specify a full path name, ADoc will search  for  the
  365. associated files first in the  current    directory,  then  in  the  "ADOC:"
  366. directory. If you specified a directory,  every  file  in  this  directory
  367. will be be associated  to  the    documentation  file  (except  files  whose
  368. filename extension is ".info" or ".index").
  369.  
  370.  
  371.     4.3 How to create several indexes.
  372.     ----------------------------------
  373.  
  374.     You can specify several files even when you are using  -i  option,
  375. e.g. the command line will look like this:
  376.  
  377.             ADoc -i -fname1,name2,...nameN
  378.  
  379.     In this case, ADoc  will  create  an  index  for  every  file  you
  380. specified, then it stops.
  381.  
  382.  
  383.     4.4 How to extend the character set.
  384.     ------------------------------------
  385.  
  386.     Sometimes, it would be useful to extend the character set  to  use
  387. in a term. The second line of a doc file is reserved for this use. If this
  388. line doesn't begin neither with a space nor with a tab character, all  the
  389. characters of this line will be added to the allowed set until ADoc  reads
  390. one of the following character : space, tab, newline, form-feed, slash.
  391.  
  392.     Note that this extension is made separately for every  file.  This
  393. means that if you are using several doc files simultaneously, the  allowed
  394. characters will change from a file to another, according  with    those  you
  395. specified in the second line of every file.
  396.  
  397.  
  398.     4.5 Using "powerpacker.library".
  399.     --------------------------------
  400.  
  401.     ADoc can load any files compressed with "PowerPacker 2.3b" or with
  402. "PowerPacker Pro 3.0b", according you have set up "powerpacker.library" in
  403. the "LIBS:" directory of your hard disk or floppy disk.
  404.  
  405.     Index file doesn't need to be  created  before  compression.  ADoc
  406. will refuse to load an encrypted file.
  407.  
  408.     After ADoc has uncompressed the file,  it  will  be  copied  in  a
  409. temporary file in the "T:" directory. This temporary file will be  deleted
  410. at the end of working session. Using compressed files can require a lot of
  411. memory (especially if  you  put  the "T:" directory in your RAM: disk), so
  412. I suggest you to compress several "little" files (30 to 50 Kb) rather than
  413. one big file (more than 100 Kb).
  414.  
  415.  
  416.     4.6 The AREXX mode.
  417.     -------------------
  418.  
  419.     If you specify -A option when calling ADoc, you'll get  the  AREXX
  420. mode: an AREXX compatible message port named "ADoc_rexx"  is  opened,  and
  421. ADoc waits for messages on this port. You can't specify -e nor -i  options
  422. whith the -A option.
  423.     Note that ADoc won't be able to go in AREXX mode when it  have  to
  424. open it's own screen, so you can't specify -e option with -A option. Also,
  425. if ADoc is run from WorkBench,    or  if    you  specify  -l  option  and  the
  426. WorkBench screen is not  in  interlaced  mode,    the  AREXX  mode  will    be
  427. silently disabled.
  428.  
  429.     The messages can be :
  430.  
  431.     quit    : ADoc closes the message port and terminates.
  432.     wakeup    : ADoc closes the message port and goes to normal
  433.           Intuition mode.
  434.     ?term    : ADoc searches this term, and if found, goes to normal
  435.           Intuition mode to display the corresponding text.
  436.  
  437.     Any other message will be ignored.
  438.  
  439.     Here comes an example of AREXX    program,  that    ask  for  help    on
  440. "alias" and terminate ADoc :
  441.  
  442.     /* Ask for help on "alias" */
  443.     address "ADoc_rexx"
  444.     "?alias"
  445.     "quit"
  446.  
  447.     Please note the " characters arround commands !
  448.  
  449.     In normal Intuition mode, you can go to AREXX mode with the "AREXX
  450. mode" command in Project menu: all opened windows will be closed, and ADoc
  451. will wait for messages on it's port.
  452.  
  453.     When you use ADoc in AREXX mode, don't forget that  ADoc  will  go
  454. back from normal Intuition mode to AREXX mode  when  you  close  the  last
  455. opened window. To terminate ADoc, use the "Quit" command in Project menu.
  456.  
  457.  
  458.     4.7 Using Commodore AutoDoc files.
  459.     ----------------------------------
  460.  
  461.     This release of ADoc  is  able    to  recognize  and  use  Commodore
  462. AutoDoc files. In most cases, you won't have to modify  these  files,  but
  463. you should verify their format : there must be at least two empty lines at
  464. the top of the file, and each term must start in column 1.
  465.     You will find, sometimes, that the empty  lines  are  missing  and
  466. that each term is  preceded  by  a  "form-feed"  (CTRL-L)  character.  The
  467. AutoConvert programm (included in ADoc  distribution)  will  automatically
  468. convert such files in the good format (NOTE: AutoConvert must be used from
  469. CLI only). In any other case,  you  will  have    to  modify  the  files    by
  470. yourself.
  471.     ADoc has been tested with the 45 AutoDoc files for system  release
  472. 2.02 : 27 didn't need any modification,  11  needed  to  be  converted  by
  473. AutoConvert, and the remaining 7 had to be hand-modified.
  474.  
  475.  
  476.     4.8 The "Special" menu.
  477.     -----------------------
  478.  
  479.     The "Info" item will tell you how much files, terms,  windows  and
  480. lines are available.
  481.     The "Open file" item allows you to open a  new  doc  file  at  any
  482. time. A file requester will appear, so you will be able to select the file
  483. to open. The files which names end by  ".info"  or  ".index"  are  hidden.
  484. Click on "ABORT" or close the window to abort.
  485.     The "Close file" item allows you to close a  doc  file  you  don't
  486. need, in order to free some memory. You will be asked for confirmation but
  487. remember that you'll always be able to open it again with the "Open  file"
  488. item.
  489.     The "Close windows" item allows you to close all the help  windows
  490. opened at the current time. You will be asked for  confirmation,  and  the
  491. term requester will appear after all windows have been closed.
  492.  
  493.  
  494. 5. Error messages.
  495. ------------------
  496.  
  497.     I've put the section where you will find more information on error
  498. message in brackets.
  499.  
  500.     - Bad arguments (3.1)
  501.  
  502.       Error in command line.
  503.  
  504.     - Can't open <name>
  505.  
  506.       Ressource <name> couldn't be opened.
  507.       Ressource can be a documentation file (verify if this file does
  508.       exist) or an index file (see sections 3.1 and 3.3 to create it).
  509.  
  510.     - Line too long <line> (see section 2.)
  511.  
  512.       The indicated line is more than 256 characters long.
  513.  
  514.     - Term too long <name> (see section 2.)
  515.  
  516.       The specified term is more than 32 characters long.
  517.  
  518.     - No text for <term> (see section 2.)
  519.  
  520.       No explanation line for this term.
  521.  
  522.     - Empty file <name>
  523.  
  524.       The file you specified is empty, or no term was found in this
  525.       file.
  526.  
  527.     - Read error <name>
  528.  
  529.       An error occurred while ADoc was reading this file.
  530.  
  531.     - Write error <name>
  532.  
  533.       An error occurred while ADoc wrote this file.
  534.  
  535.     - Bad index file <name> (see sections 2., 3.1 and 3.3)
  536.  
  537.       The index file you specified is incorrect. You MUST re-create
  538.       it.
  539.  
  540.     - Bad association for <name> (see section 4.2)
  541.  
  542.     The first line this file (the line that gives you a list of all
  543.     the relied files) is wrong or incorrectly spelt.
  544.  
  545.     - Crypted file <name> (see section 4.5)
  546.  
  547.     The file you specified was crypted with PowerPacker.
  548.  
  549.